package com.ymttest.database.mapping.thirdpartysync;

import com.ymttest.database.model.thirdpartysync.platform;
import com.ymttest.database.model.thirdpartysync.platformExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface platformMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @SelectProvider(type=platformSqlProvider.class, method="countByExample")
    int countByExample(platformExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @DeleteProvider(type=platformSqlProvider.class, method="deleteByExample")
    int deleteByExample(platformExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Delete({
        "delete from platform",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Insert({
        "insert into platform (Id, AppId, ",
        "AppSecret, AppName, ",
        "Company, Status)",
        "values (#{id,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, ",
        "#{appSecret,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR}, ",
        "#{company,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER})"
    })
    int insert(platform record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @InsertProvider(type=platformSqlProvider.class, method="insertSelective")
    int insertSelective(platform record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @SelectProvider(type=platformSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="AppId", property="appId", jdbcType=JdbcType.VARCHAR),
        @Result(column="AppSecret", property="appSecret", jdbcType=JdbcType.VARCHAR),
        @Result(column="AppName", property="appName", jdbcType=JdbcType.VARCHAR),
        @Result(column="Company", property="company", jdbcType=JdbcType.VARCHAR),
        @Result(column="Status", property="status", jdbcType=JdbcType.INTEGER)
    })
    List<platform> selectByExample(platformExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Select({
        "select",
        "Id, AppId, AppSecret, AppName, Company, Status",
        "from platform",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="AppId", property="appId", jdbcType=JdbcType.VARCHAR),
        @Result(column="AppSecret", property="appSecret", jdbcType=JdbcType.VARCHAR),
        @Result(column="AppName", property="appName", jdbcType=JdbcType.VARCHAR),
        @Result(column="Company", property="company", jdbcType=JdbcType.VARCHAR),
        @Result(column="Status", property="status", jdbcType=JdbcType.INTEGER)
    })
    platform selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @UpdateProvider(type=platformSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") platform record, @Param("example") platformExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @UpdateProvider(type=platformSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") platform record, @Param("example") platformExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @UpdateProvider(type=platformSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(platform record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table platform
     *
     * @mbggenerated Sat Jan 04 17:38:27 CST 2020
     */
    @Update({
        "update platform",
        "set AppId = #{appId,jdbcType=VARCHAR},",
          "AppSecret = #{appSecret,jdbcType=VARCHAR},",
          "AppName = #{appName,jdbcType=VARCHAR},",
          "Company = #{company,jdbcType=VARCHAR},",
          "Status = #{status,jdbcType=INTEGER}",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(platform record);
}